package cn.tianyun.pethome.org.domain;

import cn.tianyun.pethome.basic.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BaseDomain {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children=new ArrayList<>() ;

    private Long manager_id;
    private Employee manager;

    private Long parent_id;
    private  Department parent;

}
